package com.hspedu.extend_;

public class ExtendsDetail {
    public static void main(String[] args) {
        System.out.println("===第1个对象===");
        Sub sub1 = new Sub("jack",30);//创建子类对象
        System.out.println("===第2个对象===");
        Sub sub2 = new Sub("jack");

    }
}
